package icu.d4peng.basic.http.feign.support;

import java.util.function.Consumer;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.ObjectProvider;

/**
 * @author d4peng d4peng@qq.com
 * @date 2023-11-26 15:36:16
 */

class EmptyObjectProvider<T> implements ObjectProvider<T> {

	@Override
	public T getObject(Object... args) throws BeansException {
		return null;
	}

	@Override
	public T getIfAvailable() throws BeansException {
		return null;
	}

	@Override
	public T getIfUnique() throws BeansException {
		return null;
	}

	@Override
	public T getObject() throws BeansException {
		return null;
	}

	@Override
	public void forEach(Consumer action) {
		// do nothing
	}

}
